<?php
require_once 'class.phpmailer.php';

$mail = new PHPMailer ();

$mail -> From = "<colocar_email_aqui >";
$mail -> FromName = "<colocar nome aqui>";
$mail -> AddAddress ("clocar_email_de_destino_aqui");
$mail -> Subject = "Email originado da Overmundo usando SMTP do Google";
$mail -> Body = "<h4>Email enviado do Gmail.</h4>";
$mail -> IsHTML (true);
$mail -> IsSMTP();
$mail -> Host = 'ssl://smtp.gmail.com';
$mail -> Port = 465;
$mail -> SMTPAuth = true;
$mail -> Username = '<colocar usuario@gmail.com aqui>';
$mail -> Password = '<colocar senha aqui>';

if(!$mail->Send()) {
        echo 'Erro:'.$mail->ErrorInfo;
} else {
        echo 'Email enviado!';
}

?>



